package com.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String userName;
    private String account;
    private String phone;
    private String password;
    private Date createTime;
    private Date updateTime;

    public User() {

    }

    public User(Integer id, String userName, String account, String phone, String password, Date createTime, Date updateTime) {
        this.id = id;
        this.userName = userName;
        this.account = account;
        this.phone = phone;
        this.password = password;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
